package com.集合.作业;

import java.util.HashMap;
import java.util.Iterator;
import java.util.Set;

@SuppressWarnings("all")
public class h3 {
    public static void main(String[] args) {
        HashMap map = new HashMap<String,Integer>();
        map.put("jack",650);
        map.put("tom",1200);
        map.put("smith",2900);
        System.out.println(map);
        map.put("jack",2600);
        System.out.println(map);
        Set set = map.keySet();
        for (Object key : set) {
            map.put(key,((Integer)map.get(key)+100));
        }
        System.out.println(map);



    }
}
